<html>
<head>
<title>Concierge Test Console</title>
</head>
<body>
<h1>Concierge Test Console</h1>
<form action="rpc.php" target="testiframe">
<input name="redir" type="hidden" value="1" >
do: <select name="do">

<?php
$allowedCommands = array("registerPrincipal", "unregisterPrincipal", "authenticatePrincipal",
"registerTagInterest", "unregisterTagInterest", "unregisterAllTagInterests", "getTagInterests",
"registerGlobalInterest", "unregisterGlobalInterest", "registerPrincipalInterest",
"getPrincipalInterests", "unregisterPrincipalInterest", "unregisterAllPrincipalInterests",
"unregisterAllInterests", "postMessage", "getPrincipalInterestStream", "getPrincipalStream",
"getGlobalStream", "getTaglistStream");

foreach($allowedCommands as $command) {
echo "<option value='".$command."'>".$command."</option>";
}
?>
</select>
<br />
<?php 

$allowedArguments = array("name", "key", "callback", "tags", "other", "content", "since", "limit");

foreach($allowedArguments as $argument) {
echo $argument.": <input type='text' name='".$argument."' /><br />";
}
?>
<input type="submit" value="Submit" class="button" name="submit" id="submit" />
</form>
<iframe id="testiframe" name="testiframe" width="100%" height="300"></iframe>
</body>
</html>